<{include file="header.tpl"}>
    <div class="comBox">
        <form name="myform" actiom="" method="POST">
            <div class="comHeader">
                <h2>用户修改</h3>
            </div>
            <input type="hidden" name="uid" value="<{$v.uid}>" />
            <div class="comTable bt">
                <div class="info-block">
                <table class="siteInfo">
                    <tr>
                        <th style="width:15%"> 用户名： </th>
                        <td><{$v.user_name}></td>
                    </tr>
                    <tr>
                        <th>用户密码：</th>
                        <td>
                            <input type='password' name='userpwd' id='userpwd' class="text" value='' />
                            <span>(必须大于6位)</span>
                        </td>
                    </tr>
                    <tr>
                        <th>确认密码：</th> 
                        <td>
                            <input type='password' name='userpwdok' id='userpwdok' class="text" value='' />
                            <span id='pwdtest' style='color:red'></span>
                        </td>
                    </tr>
                    <tr>
                        <th>Email：</th>
                        <td>
                            <input type='input' name='email' class="text" value='<{$v.email}>' />
                        </td>
                    </tr>
                    <tr>
                        <th>用户组：</th>
                        <td>
                            <{foreach from=$cfg_groups.pools.admin.private key=kk item=vv}>
                            <label><input type='checkbox' name='groups[]' value='admin_<{$kk}>' <{if preg_match("#admin_"|cat:$kk|cat:"#", $v.groups) }> checked='checked'<{/if}> /> <{$vv.name}></label>
                            <{/foreach}>
                            <hr size='1' />
                            <a href='?ct=users&ac=user_purview&uid=<{$v.uid}>'>[为此用户设置独立权限]</a>
                            <a href='?ct=users&ac=user_purview_del&uid=<{$v.uid}>' onclick="return confirm('确定清除独立权限?')">[清除独立权限]</a>
                        </td>
                    </tr>
                    <tr>
                        <th>上次登录时间：</th>
                        <td>
                            <{$v.logintime|date_format:'%Y-%m-%d %H:%M:%S'}>
                        </td>
                    </tr>
                    <tr>
                        <th>上次登录IP：</th>
                        <td>
                            <{$v.loginip}>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交" class="sub" />
                        </td>
                    </tr>

                </table>
                </div>
            </div>
        </div>
        </form>
    </div>
<{include file="footer.tpl"}>

